from django.contrib import admin
from .models import ActivityCourse, ActivityProjectDevelop, ActivityContest


# Register your models here.
@admin.register(ActivityCourse)
class ActivityCourseAdmin(admin.ModelAdmin):
    list_display = ['title', 'abstract', 'content', 'update_time', 'create_time']
    search_fields = ['title']
    list_filter = ['create_time', 'update_time']
    ordering = ['-update_time']


@admin.register(ActivityProjectDevelop)
class ActivityProjectDevelopAdmin(admin.ModelAdmin):
    list_display = ['title', 'abstract', 'content', 'update_time', 'create_time']
    search_fields = ['title']
    list_filter = ['create_time', 'update_time']
    ordering = ['-update_time']


@admin.register(ActivityContest)
class ActivityContestAdmin(admin.ModelAdmin):
    list_display = ['title', 'abstract', 'content', 'update_time', 'create_time']
    search_fields = ['title']
    list_filter = ['create_time', 'update_time']
    ordering = ['-update_time']